/* @(#)GSManufactureScanQueryAction.java    
 *
 * Project: BUS
 *
 * Modify Information:
 * =============================================================================
 *   Author       Date       Description
 *   ------------ ---------- ---------------------------------------------------
 *   Jenny Li     2006-2-13    新增
 *   Jenny Li     2006-3-4   将读取产品编码改成读取集中编码
 *
 * Copyright Notice:
 * =============================================================================
 *    Copyright (c) 2001-2006 Beijing HiTRUST Technology Co., Ltd. 1808 Room, 
 *        Science & Technology Building, No. 9 South Street, Zhong Guan Cun, 
 *        Haidian District, Beijing ,100081, China All rights reserved.
 *
 *    This software is the confidential and proprietary information of
 *        Beijing HiTRUST Technology Co., Ltd. ("Confidential Information").
 *        You shall not disclose such Confidential Information and shall use it
 *        only in accordance with the terms of the license agreement you entered
 *        into with HiTRUST.
 *
 * Warning:
 * =============================================================================
 * 
 */
package com.hitrust.gs.action;

import java.util.ArrayList;
import java.util.HashMap;

import com.hitrust.gs.bean.GSManufactureCategoryBean;
import com.hitrust.gs.business.GSManufactureProcessor;
import com.hitrust.gs.business.GSOrderProcessor;
import com.hitrust.gs.form.GSManufactureScanQueryForm;
import com.hitrust.gs.lib.GSBaseConstants;
import com.hitrust.gs.lib.GSLogWriter;
import com.hitrust.gs.service.GSBaseAction;
import com.hitrust.gs.service.GSBaseForm;
import com.hitrust.gs.service.GSBaseManager;
import com.hitrust.gs.util.exception.GSException;
import com.hitrust.gs.util.page.ResultProcess;
import com.hitrust.gs.util.security.Base64;
import com.hitrust.gs.vo.GSManufactureVO;
import com.hitrust.gs.vo.GSOrderVO;

/**
 * 产品浏览查询操作
 */
public class GSManufactureInfoDownAction extends GSBaseAction {

    public String execute(GSBaseForm aForm) throws Exception {
        
        GSManufactureProcessor tGSManufProcessor = new GSManufactureProcessor();
        //取得页面参数放入VO对象
        //2006-11-30直接在查询页面将sql写入session
        //只在本页面传递一个查询方式判断标记
        //String sqlbuf = aForm.getRequest().getParameter("querycond");
        //String sql = new String(new Base64().decode(sqlbuf));
        //String sqlbuf = (String)aForm.getSession().getAttribute("querycond");
        //String sql = sqlbuf;
        

        
        //String keyword = aForm.getRequest().getParameter("querycondkey");
        String iskeywordquery = (String)aForm.getRequest().getParameter("iskeywordquery");
        aForm.getRequest().setAttribute("iskeywordquery",iskeywordquery);
        
        //2006-11-30
        //aForm.getSession().setAttribute("querycond",sqlbuf);
        //aForm.getSession().setAttribute("querycondkey",keyword);
        aForm.getSession().setAttribute("iskeywordquery",iskeywordquery);
        
        
//        try{
//            ArrayList tTempList=null;
//            if("F".equals(iskeywordquery)){                
//            	tTempList = tGSManufProcessor.getManufactureByOptForDownload(sql);
//            }
//            else{ 
//            	tTempList = tGSManufProcessor.getManufactureByKeywordForDownload(keyword);
//            }
//
//            aForm.getRequest().setAttribute("manufacture",tTempList);
//            
//            
//            //暂时用此方法传递分页参数
////            tForm.getRequest().setAttribute("choice",tForm.getRequest().getParameter("choice"));
//
//        }catch(GSException e){
//            aForm.getRequest().setAttribute("action","A200101.do");
//            throw e;
//        }catch(Exception e){
//            GSLogWriter.error(this,e.toString());
//            aForm.getRequest().setAttribute("action","A200101.do");
//            throw new GSException(GSException.BME10030,GSException.BME10030_MSG);
//        }
        return GSBaseConstants.FORWARD_SUCCESS;
    }



}
